const {model,SchemaTypes} =require('mongoose')


module.exports=model(
    'WaitPay',{
        goodsID:String,
        goodsName:String,
        goodsImg:String,
        count:Number,
        selected:Object,
        selectedIDs: String,
        counterPrice: Number,
        retailPrice: Number,
        date:Number||String,
        user:{
            type:SchemaTypes.ObjectId,
            refs:'user'
        },
        flag:{
            type:Number,
            default:0
        }

    }
)